package com.binyouwei.designpatterns.behavior.visitor;

import java.awt.Shape;

/**
 * @author 宾有为
 * Created on 2024/7/15 22:39
 * Social homepage: https://blog.csdn.net/baidu_41616022
 * @desc
 **/
public class VisitorRectangle  implements VisitorShape {
    private double width;
    private double height;

    public VisitorRectangle(double width, double height) {
        this.width = width;
        this.height = height;
    }

    @Override
    public void accept(VisitorShapeVisitor visitor) {
        visitor.visit(this);
    }

    public double getWidth() {
        return width;
    }

    public double getHeight() {
        return height;
    }
}
